package com.neu.carbon.task.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.neu.common.annotation.Excel;
import com.neu.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 任务列表对象 tasklist
 *
 * @author neuedu
 * @date 2025-08-25
 */
@Setter
@Getter
@ApiModel("任务列表")
public class Tasklist extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 任务id
     */
    @ApiModelProperty("任务id")
    @Excel(name = "任务id")
    private Long id;

    /**
     * 任务
     */
    @ApiModelProperty("任务")
    @Excel(name = "任务")
    private String name;

    /**
     * 任务表述
     */
    @ApiModelProperty("任务表述")
    @Excel(name = "任务表述")
    private String des;

    /**
     * 任务状态
     */
    @ApiModelProperty("任务状态")
    @Excel(name = "任务状态")
    private String taskstatus;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间", example = "2021-09-10 21:00:00")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     * 结束时间
     */
    @ApiModelProperty(value = "结束时间", example = "2021-09-10 21:00:00")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    /**
     * 班级id
     */
    @ApiModelProperty("班级id")
    private Long deptId;

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("name", getName())
                .append("des", getDes())
                .append("taskstatus", getTaskstatus())
                .append("createTime", getCreateTime())
                .append("endTime", getEndTime())
                .append("deptId", getDeptId())
                .toString();
    }
}
